package com.qf.mybatisExam01.dao;
import com.qf.mybatisExam01.entity.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookDao {
    public Book getBookById(@Param("id") Integer id);
    public List<Book> getBookByLimitPage(@Param("page") Integer page);
    public int insertManyBooks(@Param("books") List<Book> books);
    public List<Book> getBookByPage(@Param("start") Integer start,@Param("pageSize") Integer pageSize);
    public Long getTotalCount();
}
